const db = require('../sql/mySql')

/**
 * 权限分配
 * @route get /admin/authority
 * @group authority - 权限
 * @returns {object} 200 - An array of user info
 * @returns {Error}  default - Unexpected error
 * @security JWT
 */
exports.authority = (req, res) => {
    const sql = 'select * from sys_auth_rule'
    db.query(sql, (err, result) => {
        console.log('result', result)
    })
    res.send({
        status: 0,
        message: '请求成功',
        data: null
    })
}